package com.pxst.et.mapper;

import com.pxst.et.req.NonMerchantStatementReq;
import com.pxst.et.resp.NonMerchantStatementResp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author rj
 * @create 2023-11-03-11:14
 */
@Mapper
public interface NonMerchantStatementMapper {
    /**
     * 获取非商户对账单的分页数据
     * @param req
     * @return
     */
    List<NonMerchantStatementResp> selectNoMerchantStatementList(NonMerchantStatementReq req);

    /**
     * 通过id获取commandId
     * @param table
     * @param id
     * @return
     */
    @Select("SELECT command_id\n" +
            "FROM ${table}\n" +
            "WHERE id = #{id}")
    String selectCommandIdById(String table, Long id);
}
